package com.xhl.service;

import com.xhl.entity.User;
import com.xhl.service.impl.UserClientServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Service
@FeignClient(value = "XHLMR-BLOG-PROVIDER-USER-8001",fallbackFactory = UserClientServiceFallbackFactory.class)
public interface UserClientService {

    @RequestMapping("/user/all")
    public List<User> queryUserAll();

}
